package com.csun.cmny.provider.controller;

import com.csun.cmny.core.support.BaseController;
import com.csun.cmny.provider.service.NtOldmanTypeIetypeService;
import com.csun.cmny.util.wrapper.WrapMapper;
import com.csun.cmny.util.wrapper.Wrapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = "/auth")
public class NtOldmanTypeIetypeController extends BaseController {

    @Resource
    private NtOldmanTypeIetypeService ntOldmanTypeIetypeService;

    /*
    * 迁移人员类别
    * */
    @RequestMapping(value = "/moveOldmanTypeToCmny", method = RequestMethod.POST)
    public Wrapper moveOldmanTypeToCmny() {
        int ret = ntOldmanTypeIetypeService.moveOldmanTypeToCmny();
        return WrapMapper.ok(ret);
    }

    /*
    * 减免比例迁移
    * */
    @RequestMapping(value = "/movePeopleTypeSubstractRate", method = RequestMethod.POST)
    public Wrapper movePeopleTypeSubstractRate() {
        int ret = ntOldmanTypeIetypeService.movePeopleTypeSubstractRate();
        return WrapMapper.ok(ret);
    }

    /*
    * 初始化计费配置
    * */
    @RequestMapping(value = "/initExpenseConfig", method = RequestMethod.POST)
    public Wrapper initExpenseConfig() {
        int ret = ntOldmanTypeIetypeService.initExpenseConfig();
        return WrapMapper.ok(ret);
    }

    /*
    * 迁移入院流程数据
    * */
    @RequestMapping(value = "/moveOldmanIn", method = RequestMethod.POST)
    public Wrapper moveOldmanIn() {
        int ret = ntOldmanTypeIetypeService.moveOldmanIn();
        return WrapMapper.ok(ret);
    }

    /*
     * 迁移入院流程数据
     * */
    @RequestMapping(value = "/moveOldmanInItem", method = RequestMethod.POST)
    public Wrapper moveOldmanInItem() {
        int ret = ntOldmanTypeIetypeService.moveOldmanInItem();
        return WrapMapper.ok(ret);
    }

    /*
     * 清洗
     * */
    @RequestMapping(value = "/dccDsinfectionAndMedicPlan", method = RequestMethod.POST)
    public Wrapper dccDsinfectionAndMedicPlan() {
        int ret = ntOldmanTypeIetypeService.dccDsinfectionAndMedicPlan();
        return WrapMapper.ok(ret);
    }
}
